<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>同乡录页面</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="<%=basePath%>CSS/style.css">
	<link rel="stylesheet" type="text/css" href="<%=basePath%>JS/jquery-ui-1.11.2/jquery-ui.css">
	<script type="text/javascript" src="<%=basePath%>JS/jquery-ui-1.11.2/external/jquery/jquery.js"></script>
	<script type="text/javascript" src="<%=basePath%>JS/jquery-ui-1.11.2/jquery-ui.js"></script>
  	<script type="text/javascript" src="<%=basePath%>JS/page.js"></script>
  	

  </head>
  
  <body>
  		<div id="head-search">
   	 		<span class="home-path"></span>
   	 		<span class="path-font">会员管理&nbsp;&nbsp;>>&nbsp;&nbsp;同乡录 </span>
   		</div>
   		<div class="searchdiv">
   				<form action="<%=basePath %>getAllMemberAction" method="post" name="searchform" id="searchform" >
   					<span class="span">姓名：<input id="name" name="name" value='<s:property value="name"/>' style="width:100px"/></span>
   					<span class="span">入学年份：<input id="indate" name="indate" value='<s:property value="indate"/>' style="width:100px"/></span>
   					<span class="span">学院：<input id="college" value='<s:property value="college"/>' name="college" style="width:130px"/></span>
   					<span class="span">专业：<input id="major" name="major" value='<s:property value="major"/>' style="width:140px"/></span>
   					<span>
   						<button class="wong-button-text-ui wong-button-blue">
   							<span class="wong-ui-icon wong-icon-search"></span>
   							<span >查询</span>
   						</button>
   					</span>
   				</form>
   		</div>
   		
   		<div id="memebertable" Style="position:relative;top:10%;">
   			<table align="center"  id="fenyi">
			<tr style="background:blue;color:#fff;">
				<td align="center" valign="middle">序号</td>
				<td align="center" valign="middle">姓名</td>
				<td align="center" >入学年份</td>	
				<td align="center" >性别</td>
				<td align="center" >学院</td>
				<td align="center" >专业</td>
				<td align="center" >长号</td>
				<td align="center" >短号</td>		
		</tr>
		<tbody id="group_one" style="border-style:solid;"> 
		<s:iterator  value="list" id="lists" var="order" status="st">
			<tr <s:if test="#st.odd"> class="abc"</s:if> onclick="window.location.href='user/member.jsp?memId=<s:property value="memId"/>'">
				<td align="center" style="width:60px">	<s:property value="#st.index+1"/> </td>
				<td  style="width:60px">	<s:property value="memname"/> </td>
				<td align="center" style="width:80px">	<s:property value="indate"/> </td>	
				<td  style="width:40px">	<s:property value="gender"/> </td>
				<td  style="width:120px"><s:property value="college"/>	 </td>
				<td  style="width:200px"><s:property value="major"/>	 </td>
				<td  style="width:100px"><s:property value="phone"/>	 </td>
				<td  style="width:60px"><s:property value="cornet"/>	</td>
			</tr>	
		</s:iterator>	
		</tbody>
	</table>
	
<div align="center" class="divrow">
	<button  onclick="page.firstPage();" class="tablebtn">首页</button>
	<button onclick="page.prePage();" class="tablebtn">&lt;&lt;</button>
	<span id="divFood"></span> 
	<button onclick="page.nextPage();" class="tablebtn">&gt;&gt;</button>
	<button onclick="page.lastPage();" class="tablebtn">末 页</button>	
	<span class="span">	
	第 
	<input id="pageno" value="1" style="width:20px"/>页	
	<button onclick="page.aimPage();" class="tablebtn">跳转
	</button>
	</span>
	<span style="margin-left:300px">共${fn:length(list)}条</span>
</div> 
   		
   		</div>

  </body>
  <script>
  $(function(){
		page = new Page(10,'fenyi','group_one'); 
		if(${fn:length(list)}==0){
			alert("此查询条件无结果！请换个查询条件试试！");
			
		}
  });
 
  </script>
</html>
